<template>
    <view class="gift-purchase">
    <view class="header">
      <view><uni-status-bar></uni-status-bar></view>

      <view class="search-box flex-cn">
        <view class="navbar-left flex-cn" style="flex: 1" @click="backHome">
          <view
            style="width: 100rpx;color: #fff; text-align: center"
            class="qh-rt-single qh-rt-zuo-zuo navbar-back-icon"
          >
          </view>
        </view>

        <view
          style="
            height: 80rpx;
            line-height: 80rpx;
            font-size: 36rpx;
            font-family: '.PingFang SC, PingFang SC';
            display: flex;
            justify-content: center;
            align-content: center;
            flex: 1;
            color: #fff;
            font-weight: 600;
          "
        >
          {{ title }}
        </view>
        <view style="width: 320rpx; flex: 1"></view>
      </view>
    </view>


    <view class=" shuom-benner_footer">
      <view class="container">
        <!-- Main Card -->
        <view class="card">
          <!-- Header -->
          <!-- <view class="card-header">
            <text class="header-title">【团购洽谈】</text>
          </view> -->

          <!-- Content -->
          <view class="card-content">
            <text class="greeting">尊敬的顾客朋友们：</text>
            <text class="message"
              >
              如有任何疑问或需求，请联系我们的客服团队进行咨询。
              </text
            >
            <view class="qr-section">
              <view class="qr-codes-container">
                <view class="qr-code-item">
                  <image
                    class="qr-code"
                    src="https://safood-1317438654.cos.ap-guangzhou.myqcloud.com/tempImage/1735198747676d081baa124.png"
                    mode="aspectFit"
                    show-menu-by-longpress="true"
                  ></image>
                  <text class="qr-text">客服专员：福美</text>
                </view>
                <!-- <view class="qr-code-item">
                  <image
                    class="qr-code"
                    src="https://safood-1317438654.cos.ap-guangzhou.myqcloud.com/tempImage/1735198771676d083354b28.png"
                    mode="aspectFit"
                    show-menu-by-longpress="true"
                  ></image>
                  <text class="qr-text">客服专员：福珊</text>
                </view> -->
              </view>

              
              <view style="display: flex; justify-content: center;font-weight: 600;margin-bottom: 20rpx;">长按二维码添加</view>

            </view>


          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      title: "添加客服",
      isTop: true,
      isScrolled: false,
    };
  },
  computed: {
    headerStyle() {
      return `background-image: ${
        this.isTop
          ? 'url("https://safood-1317438654.cos.ap-guangzhou.myqcloud.com/tempImage/173494563867692b66b028b.png")'
          : "none"
      }`;
    },
    styleColor() {
      return `color: ${this.isTop ? "#fff" : "#000 "}`;
    },
  },
  methods: {
    backHome() {
      uni.navigateBack();
    },
    makePhoneCall() {
      uni.makePhoneCall({
        phoneNumber: '15959296192', // Replace with actual phone number
        fail(err) {
          console.error('Phone call failed:', err)
        }
      })
    },
    openLocation() {
      // Replace with actual coordinates
      uni.openLocation({
        latitude: 24.4800,
        longitude: 118.1000,
        name: '君临宝邸商场',
        address: '厦禾路689号君临宝邸商场1层东南角',
        fail(err) {
          console.error('Opening location failed:', err)
        }
      })
    },
    handleQrTap() {
      console.log('二维码被点击');
      uni.showToast({
        title: '长按可以识别二维码',
        icon: 'none'
      });
    },
  },
};
</script>

<style lang="scss" scoped>

.offline-center{
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
}

.gift-purchase {
//   height: 100vh;  
  overflow-y: auto;  
  width: 100%;
  padding-bottom: 24rpx;
}

.header{
    background-color: #fff;
    position: sticky;
    top: 0px;
    z-index: 99;
    background-color: #f5f5f5;
  background-image: url('https://safood-1317438654.cos.ap-guangzhou.myqcloud.com/tempImage/173494563867692b66b028b.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
</style>

<style >
.action-text{
  font-size: 24rpx;
  color: #000;
  padding: 10rpx 20rpx;
  background-color: #EEEEEE;
  border-radius: 32rpx;
  text-align: center;
  width: 100rpx;
}

.container {
  padding: 0;
  min-height: 100vh;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom);
}

.card {
  background-color: transparent;
  border-radius: 20rpx;
  padding: 50rpx; 
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  background-image: url('https://safood-1317438654.cos.ap-guangzhou.myqcloud.com/tempImage/1735006999676a1b17eb2d9.png');
  background-size: 100% 100%;
  background-position: center;
  display: flex;
  flex-direction: column;
  margin: 20rpx;
}

.card-header {
  margin-bottom: 30rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DA5C47;
}

.header-title {
  font-size: 36rpx;
  color: #333;
  font-weight: bold;
}

.greeting {
  font-size: 32rpx;
  color: #333;
  /* margin-bottom: 20rpx; */
  display: block;
  font-weight: 600;
}

.message {
  font-size: 28rpx;
  color: #666;
  line-height: 1.6;
  margin-bottom: 40rpx;
  display: block;
  text-indent: 2em;
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20rpx;
}

.contact-text {
  font-size: 28rpx;
  color: #333;
}

.icon-wrapper {
  width: 64rpx;
  height: 64rpx;
  flex-shrink: 0;
  margin-right: 20rpx;
}

.icon {
  width: 100%;
  height: 100%;
}

.phone-numbers {
  display: flex;
  flex-direction: column;
  gap: 10rpx;
  margin-left: 20rpx;
}

.phone-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.phone-content > view:first-child {
  display: flex;
  align-items: center;
  margin-bottom: 15rpx;
}

.phone-action {
  align-self: flex-start;
  margin-left: 84rpx;
  padding: 8rpx 20rpx;
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: 40rpx 0; */
  background-color: #fff;
  border-radius: 16rpx;
  width: 100%;
  position: relative;
  z-index: 1;
}

.qr-codes-container {
  display: flex;
  /* justify-content: space-around; */
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 20rpx;
}

.qr-code-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300rpx;
  padding: 20rpx;
}

.qr-code {
  width: 100%;
  height: 300rpx;
  background-color: #fff;
}

.qr-text {
  margin-top: 20rpx;
  font-size: 28rpx;
  color: #333;
  font-weight: 400;
  text-align: center;
  width: 100%;
}

.location-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.location-content > view:first-child {
  display: flex;
  align-items: center;
  margin-bottom: 15rpx;
}

.location-action {
  align-self: flex-start;
  margin-left: 84rpx;
  padding: 8rpx 20rpx;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 50rpx;
}
</style>

<style lang="scss" scoped>
.shuom-describe-container {
  padding: 30rpx;
}

.shuom-describe-card {
  position: relative;
  width: 100%;
  border-radius: 20rpx;
  overflow: hidden;
}

.shuom-describe-bg-image {
  width: 100%;
  height: auto;
  display: block;
}

.shuom-describe-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40rpx;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 60rpx;
}

.shuom-describe-text-content {
  .shuom-describe-paragraph {
    display: block;
    color: #333;
    font-size: 28rpx;
    line-height: 1.5;
    margin-bottom: 20rpx;
    text-indent: 2em;
    font-weight: 600;

    &:last-child {
      margin-bottom: 0;
    }
  }
}
</style>
